package com.h2cloud.Enum;

/**
 * @Package: com.h2cloud.Enum
 * @ClassName: WeekDay2
 * @Author: h2cloud
 * @CreateTime: 2022/5/27 12:06 下午
 * @Description:
 */
public class EnumDemo {

	public static void main(String[] args) {
	}
}

enum WeekDayEnum {
	MONDAY(1, "星期一"),
	TUESDAY(2, "星期二"),
	WEDNESDAY(3, "星期三"),
	THURSDAY(4, "星期四"),
	FRIDAY(5, "星期五"),
	SATURDAY(6, "星期六"),
	SUNDAY(7, "星期日");

	private final Integer code;
	private final String desc;

	WeekDayEnum(Integer code, String desc) {
		this.code = code;
		this.desc = desc;
	}
}

